package com.gxar.quick.ar.server.base.model.order.vo.response;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/11/7 16:26
 */
@Data
@ApiModel("订单列表响应")
public class OrderListResponse {

    @ApiModelProperty("订单id")
    @JSONField(name = "order_id")
    @JsonProperty("order_id")
    private String id;

    @ApiModelProperty("购买日期")
    @JSONField(name = "buy_time")
    @JsonProperty("buy_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date buyTime;

    @ApiModelProperty("产品配置信息")
    @JSONField(name = "product_config")
    @JsonProperty("product_config")
    private String productConfig;

    @ApiModelProperty("产品类型。0-会员")
    @JSONField(name = "product_type")
    @JsonProperty("product_type")
    private Integer productType;

    @ApiModelProperty("产品id。type为0时，该字段为comboId")
    @JSONField(name = "product_id")
    @JsonProperty("product_id")
    private String productId;

    @ApiModelProperty("开始时间")
    @JSONField(name = "start_time")
    @JsonProperty("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JSONField(name = "end_time")
    @JsonProperty("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

}
